import request from '@/utils/request'

// 查询神椰分红池列表
export function poolList(query) {
  return request({
    url: '/shenye/bonus/pool/list',
    method: 'get',
    params: query
  })
}
// 查询店铺下拉框
export function shopSelect(data) {
  return request({
    url: '/shenye/bonus/pool/shop/select',
    method: 'POST',
    data
  })
}
// 查询店铺信息
export function poolShop(data) {
  return request({
    url: '/shenye/bonus/pool/shop',
    method: 'POST',
    data
  })
}
// 立即结束分红池
export function poolEnd(data) {
  return request({
    url: '/shenye/bonus/pool/bonus/pool/end',
    method: 'post',
    data
  })
}
// 新增分红池
export function addPool(data) {
  return request({
    url: '/shenye/bonus/pool',
    method: 'POST',
    data
  })
}
// 查询神椰分红池详情
export function poolDetail(id) {
  return request({
    url: '/shenye/bonus/pool/detail/' + id,
    method: 'get',
  })
}
// 编辑分红池
export function editPool(data) {
  return request({
    url: '/shenye/bonus/pool',
    method: 'put',
    data
  })
}
// 查询分红池周期标签列表
export function poolCycleLs(id) {
  return request({
    url: '/shenye/bonus/pool/cycle/list/' + id,
    method: 'get',
  })
}
// 查询分红池周期活动数据
export function poolCycleCount(id) {
  return request({
    url: '/shenye/bonus/pool/cycle/count/' + id,
    method: 'get',
  })
}
// 查询分红池累加明细订单
export function cycleOrderLs(query) {
  return request({
    url: '/shenye/bonus/pool/cycle/order/list',
    method: 'get',
    params: query
  })
}
// 查询分红池参与用户
export function cycleCustomerLs(query) {
  return request({
    url: '/shenye/bonus/pool/cycle/customer/list',
    method: 'get',
    params: query
  })
}
